package atguigu2.callable;

import java.util.concurrent.FutureTask;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/3
 * @VERSION 1.0
 * @DESC
 */
public class CallableDemo {
    public static void main(String[] args) {
//        Future<Integer> future1 = new CompletableFuture<>(()->{
//
//        });
          FutureTask<Integer> future1= new FutureTask<>(()->{
              System.out.println();
              return 100;
          });

          new Thread(future1,"").start();
          //future1.get()

    }
}
